'use strict';

const RouterService = require('../base');

class PostCommentService extends RouterService {
    static get modelName() {
        return 'Business.PostComment';
    }

    getPageInclude() {
        return [
            {
                model: this.ctx.model.Business.User,
                as: 'user'
            },
            {
                model: this.ctx.model.Business.User,
                as: 'replyUser'
            },
            {
                model: this.ctx.model.Business.Post,
                as: 'post'
            }
        ]
    }
    getListInclude() {
        return this.getPageInclude();
    }
}

module.exports = PostCommentService;
